function E = fn_E(w,n)

E = sum(w.*n);

end